package com.huixuebao.exchange.controller.course;


import com.huixuebao.common.bean.ApiResult;
import com.huixuebao.exchange.service.CourseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "课程模块",tags = "{课程模块}")
@Slf4j
@RestController
@RequestMapping("/exchangeApi/course")
public class CourseController {

    /**
     * 获取课程详情
     */
    @Autowired
    CourseService courseService;

    @ApiOperation("getCourseList")
    @GetMapping("/getCourseItem")
    public ApiResult getCourseItem(Integer current,Integer size,String mechanismId){

        return courseService.getCourseItem(current,size,mechanismId);
    }
}
